package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 接收的数据帧业务对象 recieved_data
 *
 * @author ruoyi
 * @date 2024-06-30
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RecievedDataBo extends BaseEntity {

    /**
     * 数据帧id
     */
    @NotNull(message = "数据帧id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long dataFrameId;

    /**
     * 输出端口号
     */
    @NotNull(message = "输出端口号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long outport;

    /**
     * 接收状态
     */
    @NotNull(message = "接收状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long recieveState;

    /**
     * 接收时间
     */
    @NotNull(message = "接收时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date recieveTime;

    /**
     * 接收长度
     */
    @NotNull(message = "接收长度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long recieveLength;

    /**
     * crc校验结果
     */
    @NotNull(message = "crc校验结果不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long crcResult;


}
